package edu.whu.rose.clock.kps.algorithm.blinks.search3;

import edu.whu.rose.clock.kps.algorithm.blinks.index.KNEntry;

public class KNCursor3 extends Cursor3 {
	
	private KNEntry[] list;
	
	public KNCursor3(int block, KNEntry[] list) {
		super(block);
		this.list = list;
	}
	
	public boolean empty() {
		if (pos > list.length - 2) {
			return true;
		}
		else {
			return false;
		}
	}

	public KNEntry[] getList() {
		return list;
	}

	public int getFirst() {
		return list[pos].getFirst();
	}

	public int getKnode() {
		return list[pos].getKnode();
	}

	public int getNode() {
		return list[pos].getNode();
	}

	public double getDistance() {
		return list[pos].getDistance();
	}

	public double peek() {
		return list[pos + 1].getDistance();
	}

}
